package com.sdk4.jinritemai.model.bean.settle;

import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

/**
 * @Author huangji
 * @Date 2021/6/17 15:39
 */
@NoArgsConstructor
@Data
@Getter
@Setter
public class DoudianOrderSettle2 {


    private int total;
    private List<PaySettleItemListBean> paySettleItemList;

    @NoArgsConstructor
    @Data
    public static class PaySettleItemListBean {
        /**
         * 订单相关信息，具体字段见响应示例
         */
        private OrderInfoBean orderInfo;
        /**
         * 结算相关信息，具体字段见响应示例
         */
        private SettleInfoBean settleInfo;
        /**
         * 收入相关信息，具体字段见响应示例
         */
        private IncomeInfoBean incomeInfo;
        /**
         * 支出相关信息，具体字段见响应示例
         */
        private OutcomeInfoBean outcomeInfo;

        @NoArgsConstructor
        @Data
        public static class OrderInfoBean {
            private String pId;
            private String orderId;
            private String shopOrderId;
            private String orderTime;
            private String productId;
            private String phaseOrderNo;
            private int phaseCnt;
            private int phaseId;
        }

        @NoArgsConstructor
        @Data
        public static class SettleInfoBean {
            private String settleTime;
            private int payType;
            private int flowType;
            private int settleAmount;
        }

        @NoArgsConstructor
        @Data
        public static class IncomeInfoBean {
            private int payAmount;
            private int platformCoupon;
            private int payPromotionAmount;
        }

        @NoArgsConstructor
        @Data
        public static class OutcomeInfoBean {
            private int orderRefund;
            private int platformServiceFee;
            private int authorCommission;
            private int goodLearnChannelFee;
        }
    }
}

